#include <stdio.h>
#include <string.h>
#include <unistd.h>

int main()
{
    char buf[1024];
    ssize_t s=read(0,buf,sizeof(buf));
    if(s>0)
    {
        buf[s]=0;
        write(1,buf,s);
        write(2,buf,strlen(buf));
    }
    return 0;
}
